package cn.jr.pojo;

//订单表
@SuppressWarnings("all")
public class Order{

    private Integer orderId;//订单主键
    private String orderNumber;//订单编号
    private Double waresAllPrice;//订单总价(继承)
    private Double orderReallyPrice; //订单实际总价(继承)
    private String orderTime;//交易时间


    //无参
    public Order() {
    }

    //继承了OrderProject
    //4个参（没有订单主键）
    public Order(String orderNumber, Double waresAllPrice, Double orderReallyPrice, String orderTime) {
        this.orderNumber = orderNumber;
        this.waresAllPrice = waresAllPrice;
        this.orderReallyPrice = orderReallyPrice;
        this.orderTime = orderTime;
    }

    //2个参（订单编号，交易时间）
    public Order(String orderNumber, String orderTime) {
        this.orderNumber = orderNumber;
        this.orderTime = orderTime;
    }

    //全参
    public Order(Integer orderId, String orderNumber, Double waresAllPrice, Double orderReallyPrice, String orderTime) {
        this.orderId = orderId;
        this.orderNumber = orderNumber;
        this.waresAllPrice = waresAllPrice;
        this.orderReallyPrice = orderReallyPrice;
        this.orderTime = orderTime;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public Double getWaresAllPrice() {
        return waresAllPrice;
    }

    public void setWaresAllPrice(Double waresAllPrice) {
        this.waresAllPrice = waresAllPrice;
    }

    public Double getOrderReallyPrice() {
        return orderReallyPrice;
    }

    public void setOrderReallyPrice(Double orderReallyPrice) {
        this.orderReallyPrice = orderReallyPrice;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderNumber='" + orderNumber + '\'' +
                ", waresAllPrice=" + waresAllPrice +
                ", orderReallyPrice=" + orderReallyPrice +
                ", orderTime='" + orderTime + '\'' +
                '}';
    }
}
